import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { viteMockServe } from 'vite-plugin-mock';  
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  base: './',
  plugins: [vue({
    reactivityTransform: true
  }),viteMockServe({
    supportTs: true,
    mockPath: 'mock',
    prodEnabled: true,
    injectCode: `import { setupProdMockServer } from './mockProdServer'; setupProdMockServer();`,
  })],
})
